const path = require("path");

module.exports = {
  productionSourceMap: false,
  devServer: {
    port: 8888,
    open: true,
    proxy: {
      "^/api": {
        // target: process.env.NODE_ENV, //最新地址
        target: "http://123.207.32.32:5000", //最新地址
        pathRewrite: {
          "^/api": "",
        },
        changeOrigin: true,
        secure: false,
      },
    },
  },
  configureWebpack: {
    resolve: {
      alias: {
        "@": path.resolve(__dirname, "src"),
      },
    },
  },
};
